import request from "./index.js"
// 老师获取文献综述列表
export function getTeacherLiteratureByPage(data) {
  return request({
    method:'post',
    url: '/documents/teacher/literature/page',
    data
  })
}
// 老师获取文献综述总数
export function getTeacherLiteratureTotal() {
  return request({
    method:'get',
    url: '/documents/teacher/literature/total' 
  })
} 
// 老师评审指定 id 的文献综述
export function reviewLiteratureById(data) {
    return request({
      method:'post',
      url: '/documents/teacher/literature/review/',
      data 
    })
  } 
  // 老师插销评审指定 id 的文献综述 
  export function teacherCancelCheckLiteratureById(id) {
    return request({
      method:'get',
      url: `/documents/teacher/literature/cancel/${id}` 
    })
  }

  
  // 学生获取个人提交的文献综述
  export function getStudentLiterature() {
    return request({
      method:'get',
      url: '/documents/student/literature'
    })
  }
 
 // 学生获取个人提交的文献综述
 export function studentAddLiterature(data) {
  return request({
    method:'post',
    url: '/documents/student/literature/add',
    data
  })
}
 // 学生修改个人提交的文献综述
 export function studentUpdateLiterature(data) {
  return request({
    method:'post',
    url: '/documents/student/literature/update',
    data
  })
}
  